#ifndef __Drv_Param__H
#define __Drv_Param__H

#include "Drv_Sys.h"

#define RT_ALIGN_DOWN(size, align)      ((size) & ~((align) - 1))
#define FLASH_PAGE_SIZE                 1*1024
#define STM32_FLASH_START_PARAM_ADDRESS         (0x8000000+63*FLASH_PAGE_SIZE)
#define STM32_FLASH_END_ADDRESS                 (0x8000000+64*FLASH_PAGE_SIZE)



int flash_read(uint32_t addr, uint8_t *buf, uint32_t size);

int flash_write(uint32_t addr, const uint8_t *buf, uint32_t size);
    

#endif
